/**
 * 搜索词api
 */
import instance from "@/utils/request";

//查询热词
export function GetSearchListApi(data = {}) {
    return instance.request({
        method: "post",
        url: "/search/word/page",
        data
    })
}

//添加热词
export function AddSearchListApi(data = {}) {
    return instance.request({
        method: "post",
        url: "/search/word/add",
        data
    })
}

//修改热词
export function EditSearchListApi(data = {}) {
    return instance.request({
        method: "post",
        url: "/search/word/modify",
        data
    })
}

//删除热词
export function delSearchListApi(data = {}) {
    return instance.request({
        method: "post",
        url: "/search/word/delete",
        headers: { "Content-Type": "application/x-www-form-urlencoded" },
        data
    })
}

//查看用户
export function CheckUserSearchListApi(data = {}) {
    return instance.request({
        method: "post",
        url: "/search/word/user/page",
        data
    })
}

//批量删除热词设置
export function BatchDelUserSearchListApi(wordIdList) {
    return instance.request({
        method: "get",
        url: `/search/word/setting/delete/${wordIdList}`,
    })
}